<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<title>Shopping Cart</title>
<link rel="stylesheet" type="text/css" href="./css/style.css" />
<script language="javascript" src="./admin/js/Validation.js" type="text/JavaScript"></script>

<SCRIPT language=JavaScript>
	function displayCreditCard(){
		var flag = document.getElementById("credit_card_1");
		
		flag.style.display = "";
		
		flag = document.getElementById("credit_card_2");
		flag.style.display = "";
	}
	
	function displayPaypal(){
		var flag = document.getElementById("paypal");
		
		flag.style.display = "";
	}
	
	function hiddeOtherPaymentMethod(){
		var flag = document.getElementById("credit_card_1");
		
		flag.style.display = "none";
		
		flag = document.getElementById("credit_card_2");
		flag.style.display = "none";
		
		flag = document.getElementById("paypal");
		flag.style.display = "none";
	}
	
	function checkForm(){
		var theform = window.document.fm;
		var state = document.getElementById("state");
		
		
		if (validDefault.isEmpty("firstname"," First Name")){
			return false;
		}else if (validDefault.isEmpty("lastname"," Last Name")){
			return false;
		}else if (validDefault.isEmpty("phoneNumber"," Phone Number")){
			return false;
		}else if (validDefault.isEmpty("street"," Street Address")){
			return false;
		}else if (validDefault.isEmpty("city"," City")){
			return false;
		}else if (state != undefined && validDefault.isEmpty("state"," State")){
			return false;
		}else if (validDefault.isEmpty("zipcode"," Zipcode")){
			return false;
		}else{
			return true;
		}
	}
	
	function checkedPaymet(radioName){
	    var obj;    
	    obj=document.getElementsByName(radioName);
	    if(obj!=null){
	        var i;
	        for(i=0;i<obj.length;i++){
	            if(obj[i].checked){
	                return true;            
	            }
	        }
	    }
	    return false;
	}
	
	function checkSubmit(){
		if(checkedPaymet("paymentMethod"))
			return true;
		else{
			alert("Payment method is required.");
			return false;
		}
	}
</SCRIPT>
</head>
<body>
	<div id="wrap">
		{include file="header.html"}
		
		<div class="center_content">
			
			<!--end of left content{include file="leftLogin.html"}-->
			
			{include file="rightCheckout.html"}
			<div class="clear"></div>
		</div>
		<!--end of center content-->
		{include file="footer.html"}
	</div>
</body>
</html>
